#pragma once
#include "../bytearray.h"
#include "../gus2_config.h"
#if GUS2_ENABLE_ATTRI
#define CTRL_TYPE_ICONS icons
#define CTRL_TYPE_GIF_ICON gif_icon

typedef struct {
	unsigned char Index; 
	unsigned char Next;
}__gui_attr_icons;

typedef struct {
	const __gui_attr_icons* icons;
	unsigned char State; 
}__gui_attr_gif_icon;

extern const __gui_attr_icons CTRL_ICONS_ATTR;
extern const __gui_attr_gif_icon CTRL_TYPE_GIF_ICON;
#endif 

typedef enum {
	ICONS_NEXT_FORWARD = 0,
	ICONS_NEXT_BACKWARD = 1,
}eicons_next_dir_t;
typedef enum {
	GIF_STATE_PAUSE = 0,
	GIF_STATE_PLAYING = 1,
}egif_icon_state_t;


void gui_icons_set_index(bytearray_t* ba, unsigned int index);
void gui_icons_set_next(bytearray_t* ba, eicons_next_dir_t dir);
void gui_gif_icon_set_state(bytearray_t* ba, egif_icon_state_t state);
